package com.yazi.mxz.common.db.dao;

import com.myframework.smhj.hibernate.dao.Dao;
import com.yazi.mxz.common.entity.beans.MemberPromote;

public interface MemberPromoteDao extends Dao<MemberPromote> {
	
	/**
	 * 删除企业某类型的充值促销
	 * @param companyId
	 * @param type
	 * @return
	 */
	int delete(long companyId, int type);
	
	/**
	 * 获取一个目标金额所能满足的充值促销
	 * @param companyId 企业ID
	 * @param type 促销类型
	 * @param prepaid 目标金额
	 * @return
	 */
	MemberPromote oneFloorPrepaid(long companyId, int type, float prepaid);

}
